const arr1 =[ 33,22,22,55,33,11,33,5]
const arr2 =[ 22,22,55,77,88,88,99,99]
// 合集并去重
const union=[...new Set([...arr1,...arr2])]
//并集 相同的部分
const cross=[...new Set(arr1.filter(it=>arr2.includes(it)))]
// 差集 不相同的部分
const diff=union.filter(it=>!cross.includes(it))